import request from '@/utils/request'

// 查询预期目标列表
export function listExpectedGoal(query) {
  return request({
    url: '/business/expectedGoal/list',
    method: 'get',
    params: query
  })
}

// 查询预期目标详细
export function getExpectedGoal(id) {
  return request({
    url: '/business/expectedGoal/' + id,
    method: 'get'
  })
}

// 新增预期目标
export function addExpectedGoal(data) {
  return request({
    url: '/business/expectedGoal',
    method: 'post',
    data: data
  })
}

// 修改预期目标
export function updateExpectedGoal(data) {
  return request({
    url: '/business/expectedGoal',
    method: 'put',
    data: data
  })
}

// 删除预期目标
export function delExpectedGoal(id) {
  return request({
    url: '/business/expectedGoal/' + id,
    method: 'delete'
  })
}
